import request from '@/utils/request'; 

const access_token:string = sessionStorage.getItem('token');

 
//获取教师信息  
export async function getTeacherList( params:any) {
  return request('/api2/teacher/list', {
    headers:{ 
      access_token
    },  
  });
} 


//新增教师信息 
export async function addTeacherList( params:any) {
  return request('/api2/teacher/teacherUserRegister', {
    headers:{
      access_token
    },  
    data:{
      params
    }
  });
} 



//修改教师信息
export async function updataTeacherList( params:any) {
  return request('/api2/teacher/edit', {
    headers:{
      access_token
    },  
    data:{
      params
    }
  });
} 


 




